package com.dsjy.yf.address.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dsjy.yf.address.entity.dataobject.StreetDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author whj
 * @version 1.0
 * @date 2021-01-15 9:43
 */
public interface StreetMapper extends BaseMapper<StreetDO> {

    /**
     * 根据区划代码查找街路巷弄信息
     *
     * @param parentCode
     * @return
     */
    List<StreetDO> searchStreetWithParentCode(Integer parentCode, Boolean flag);

    /**
     * 增加路巷弄
     *
     * @param streetDO
     * @return
     */
    Integer addStreet(@Param("streetDO") StreetDO streetDO);


    /**
     * 更新修改
     *
     * @param streetDO
     * @return
     */
    Integer updStreet(@Param("streetDO") StreetDO streetDO);
}
